<?php

use Illuminate\Support\Facades\DB;
use Illuminate\Database\Seeder;

class MenusTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        DB::table('menus')->truncate();

        $sort = 1;

        /************************** 系统公用菜单 *******************************/

        /* 增加系统设置 */
        $pid = DB::table('menus')->insertGetId([
            'pid' => 0,
            'title' => '系统设置',
            'name' => '',
            'url' => '',
            'icon' => 'fa-cog',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $pid,
            'title' => '系统设置',
            'name' => 'setting/app',
            'url' => '',
            'icon' => '',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $pid,
            'title' => '站点设置',
            'name' => 'setting/site',
            'url' => '',
            'icon' => '',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        /* 字典管理 */
        $sonPid = DB::table('menus')->insertGetId([
            'pid' => $pid,
            'title' => '字典管理',
            'name' => 'map/index',
            'url' => '',
            'icon' => '',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '新增字典',
            'name' => 'map/add',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '编辑字典',
            'name' => 'map/edit',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '删除字典',
            'name' => 'map/delete',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '查看字典',
            'name' => 'map/data',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '添加字典值',
            'name' => 'map/add_data',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '编辑字典值',
            'name' => 'map/edit_data',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '删除字典值',
            'name' => 'map/delete_data',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        /* 增加权限管理类别 */
        $pid = DB::table('menus')->insertGetId([
            'pid' => 0,
            'title' => '权限管理',
            'name' => '',
            'url' => '',
            'icon' => 'fa-lock',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        /* 管理员设置 */
        $sonPid = DB::table('menus')->insertGetId([
            'pid' => $pid,
            'title' => '管理员管理',
            'name' => 'manager/index',
            'url' => '',
            'icon' => '',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '新增管理员',
            'name' => 'manager/add',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '编辑管理员',
            'name' => 'manager/edit',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '删除管理员',
            'name' => 'manager/delete',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '查看管理员',
            'name' => 'manager/view',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        /* 角色管理 */
        $sonPid = DB::table('menus')->insertGetId([
            'pid' => $pid,
            'title' => '角色管理',
            'name' => 'role/index',
            'url' => '',
            'icon' => '',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '新增角色',
            'name' => 'role/add',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '编辑角色',
            'name' => 'role/edit',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '删除角色',
            'name' => 'role/delete',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '查看角色',
            'name' => 'role/view',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '授权角色',
            'name' => 'role/permission',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        /* 菜单管理 */
        $sonPid = DB::table('menus')->insertGetId([
            'pid' => $pid,
            'title' => '菜单管理',
            'name' => 'menu/index',
            'url' => '',
            'icon' => '',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '新增菜单',
            'name' => 'menu/add',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '编辑菜单',
            'name' => 'menu/edit',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '删除菜单',
            'name' => 'menu/delete',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '查看菜单',
            'name' => 'menu/view',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        /************************** 系统定制菜单 *******************************/

        /* 教师管理 */
        $pid = DB::table('menus')->insertGetId([
            'pid' => 0,
            'title' => '教师管理',
            'name' => '',
            'url' => '',
            'icon' => 'fa-user',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        /* 教师等级管理 */
        $sonPid = DB::table('menus')->insertGetId([
            'pid' => $pid,
            'title' => '头衔设置',
            'name' => 'level/index',
            'url' => '',
            'icon' => '',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '新增等级类型',
            'name' => 'level/add',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '编辑等级类型',
            'name' => 'level/edit',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '删除等级类型',
            'name' => 'level/delete',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '查看等级类型',
            'name' => 'level/view',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        /* 任课教师管理 */
        $sonPid = DB::table('menus')->insertGetId([
            'pid' => $pid,
            'title' => '任课教师管理',
            'name' => 'teacher/tutor/index',
            'url' => '',
            'icon' => '',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '添加任课教师',
            'name' => 'teacher/tutor/add',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '编辑教师',
            'name' => 'teacher/tutor/edit',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '删除教师',
            'name' => 'teacher/tutor/delete',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '查看教师',
            'name' => 'teacher/tutor/view',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '查看教师',
            'name' => 'teacher/tutor/enable',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        /* 后勤教师管理 */
        $sonPid = DB::table('menus')->insertGetId([
            'pid' => $pid,
            'title' => '后勤教师管理',
            'name' => 'teacher/logistics/index',
            'url' => '',
            'icon' => '',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '添加教师',
            'name' => 'teacher/logistics/add',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '编辑教师',
            'name' => 'teacher/logistics/edit',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '删除教师',
            'name' => 'teacher/logistics/delete',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '查看教师',
            'name' => 'teacher/logistics/view',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '查看教师',
            'name' => 'teacher/logistics/enable',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        /* 班主任管理 */
        $sonPid = DB::table('menus')->insertGetId([
            'pid' => $pid,
            'title' => '班主任管理',
            'name' => 'teacher/main/index',
            'url' => '',
            'icon' => '',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '添加班主任',
            'name' => 'teacher/main/add',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '删除班主任',
            'name' => 'teacher/main/delete',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '查看班主任',
            'name' => 'teacher/main/view',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        /* 课程/课程管理 */
        $pid = DB::table('menus')->insertGetId([
            'pid' => 0,
            'title' => '课程管理',
            'name' => '',
            'url' => '',
            'icon' => 'fa-users',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        $sonPid = DB::table('menus')->insertGetId([
            'pid' => $pid,
            'title' => '课程管理',
            'name' => 'lesson/index',
            'url' => '',
            'icon' => '',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $pid,
            'title' => '课程信息',
            'name' => 'lesson/index',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '添加课程',
            'name' => 'lesson/add',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '编辑课程',
            'name' => 'lesson/edit',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '删除课程',
            'name' => 'lesson/delete',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '查看课程',
            'name' => 'lesson/view',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        /* 班级管理 */
        $pid = DB::table('menus')->insertGetId([
            'pid' => 0,
            'title' => '班级管理',
            'name' => '',
            'url' => '',
            'icon' => 'fa-users',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        $sonPid = DB::table('menus')->insertGetId([
            'pid' => $pid,
            'title' => '班级管理',
            'name' => 'classes/index',
            'url' => '',
            'icon' => '',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $pid,
            'title' => '班级信息',
            'name' => 'classes/index',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '添加班级',
            'name' => 'classes/add',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '编辑班级',
            'name' => 'classes/edit',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '删除班级',
            'name' => 'classes/delete',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '查看班级',
            'name' => 'classes/view',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        /* 学生/学生管理 */
        $pid = DB::table('menus')->insertGetId([
            'pid' => 0,
            'title' => '学生管理',
            'name' => '',
            'url' => '',
            'icon' => 'fa-users',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        $sonPid = DB::table('menus')->insertGetId([
            'pid' => $pid,
            'title' => '学生管理',
            'name' => 'student/index',
            'url' => '',
            'icon' => '',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
//        DB::table('menus')->insertGetId([
//            'pid' => $pid,
//            'title' => '学生信息',
//            'name' => 'student/index',
//            'url' => '',
//            'icon' => '',
//            'is_show' => 0,
//            'is_system' => 1,
//            'sort' => $sort++,
//            'created_at' => date('Y-m-d H:i:s'),
//            'updated_at' => date('Y-m-d H:i:s')
//        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '添加学生',
            'name' => 'student/add',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '编辑学生',
            'name' => 'student/edit',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '删除学生',
            'name' => 'student/delete',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '查看学生',
            'name' => 'student/view',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        /* 心理健康管理 */
        $pid = DB::table('menus')->insertGetId([
            'pid' => 0,
            'title' => '心理健康平台模块',
            'name' => '',
            'url' => '',
            'icon' => 'fa-users',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        $sonPid = DB::table('menus')->insertGetId([
            'pid' => $pid,
            'title' => '心理健康分类',
            'name' => 'mental/index',
            'url' => '',
            'icon' => '',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $pid,
            'title' => '类型信息',
            'name' => 'mental/index',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '添加类型',
            'name' => 'mental/add',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '编辑类型',
            'name' => 'mental/edit',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '删除类型',
            'name' => 'mental/delete',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '查看类型',
            'name' => 'mental/view',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        $sonPid = DB::table('menus')->insertGetId([
            'pid' => $pid,
            'title' => '心理健康记录',
            'name' => 'mental/record',
            'url' => '',
            'icon' => '',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        /* 异常行为管理 */
        $pid = DB::table('menus')->insertGetId([
            'pid' => 0,
            'title' => '异常行为分析模块',
            'name' => '',
            'url' => '',
            'icon' => 'fa-users',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        $sonPid = DB::table('menus')->insertGetId([
            'pid' => $pid,
            'title' => '异常行为分类',
            'name' => 'abnormal/index',
            'url' => '',
            'icon' => '',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $pid,
            'title' => '分类信息',
            'name' => 'abnormal/index',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '添加类型',
            'name' => 'abnormal/add',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '编辑类型',
            'name' => 'abnormal/edit',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '删除类型',
            'name' => 'abnormal/delete',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '查看类型',
            'name' => 'abnormal/view',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        $sonPid = DB::table('menus')->insertGetId([
            'pid' => $pid,
            'title' => '心理健康记录',
            'name' => 'abnormal/record',
            'url' => '',
            'icon' => '',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        /* 勤奋指数管理 */
        $pid = DB::table('menus')->insertGetId([
            'pid' => 0,
            'title' => '勤奋指数',
            'name' => '',
            'url' => '',
            'icon' => 'fa-users',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        $sonPid = DB::table('menus')->insertGetId([
            'pid' => $pid,
            'title' => '勤奋指数分类',
            'name' => 'viewTime/index',
            'url' => '',
            'icon' => '',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $pid,
            'title' => '类型信息',
            'name' => 'viewTime/index',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '添加类型',
            'name' => 'viewTime/add',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '编辑类型',
            'name' => 'viewTime/edit',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '删除类型',
            'name' => 'viewTime/delete',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '查看类型',
            'name' => 'viewTime/view',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        $sonPid = DB::table('menus')->insertGetId([
            'pid' => $pid,
            'title' => '勤奋记录',
            'name' => 'viewTime/record',
            'url' => '',
            'icon' => '',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        /* 专注度管理 */
        $pid = DB::table('menus')->insertGetId([
            'pid' => 0,
            'title' => '专注度管理',
            'name' => '',
            'url' => '',
            'icon' => 'fa-users',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        $sonPid = DB::table('menus')->insertGetId([
            'pid' => $pid,
            'title' => '专注度分类',
            'name' => 'attention/index',
            'url' => '',
            'icon' => '',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $pid,
            'title' => '类型信息',
            'name' => 'attention/index',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '添加类型',
            'name' => 'attention/add',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '编辑类型',
            'name' => 'attention/edit',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '删除类型',
            'name' => 'attention/delete',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '查看类型',
            'name' => 'attention/view',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        $sonPid = DB::table('menus')->insertGetId([
            'pid' => $pid,
            'title' => '专注度记录',
            'name' => 'attention/record',
            'url' => '',
            'icon' => '',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        /* 纪律管理 */
        $pid = DB::table('menus')->insertGetId([
            'pid' => 0,
            'title' => '纪律管理',
            'name' => '',
            'url' => '',
            'icon' => 'fa-users',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        $sonPid = DB::table('menus')->insertGetId([
            'pid' => $pid,
            'title' => '纪律分类',
            'name' => 'discipline/index',
            'url' => '',
            'icon' => '',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $pid,
            'title' => '类型信息',
            'name' => 'discipline/index',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '添加类型',
            'name' => 'discipline/add',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '编辑类型',
            'name' => 'discipline/edit',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '删除类型',
            'name' => 'discipline/delete',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '查看类型',
            'name' => 'discipline/view',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        $sonPid = DB::table('menus')->insertGetId([
            'pid' => $pid,
            'title' => '纪律记录',
            'name' => 'discipline/record',
            'url' => '',
            'icon' => '',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        /* 积极性管理 */
        $pid = DB::table('menus')->insertGetId([
            'pid' => 0,
            'title' => '积极性管理',
            'name' => '',
            'url' => '',
            'icon' => 'fa-users',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        $sonPid = DB::table('menus')->insertGetId([
            'pid' => $pid,
            'title' => '积极性分类',
            'name' => 'enthusiasm/index',
            'url' => '',
            'icon' => '',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $pid,
            'title' => '类型信息',
            'name' => 'enthusiasm/index',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '添加类型',
            'name' => 'enthusiasm/add',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '编辑类型',
            'name' => 'enthusiasm/edit',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '删除类型',
            'name' => 'enthusiasm/delete',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '查看类型',
            'name' => 'enthusiasm/view',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        $sonPid = DB::table('menus')->insertGetId([
            'pid' => $pid,
            'title' => '积极性记录',
            'name' => 'enthusiasm/record',
            'url' => '',
            'icon' => '',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        /* 达人管理 */
        $pid = DB::table('menus')->insertGetId([
            'pid' => 0,
            'title' => '校园焦点榜',
            'name' => '',
            'url' => '',
            'icon' => 'fa-users',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        $sonPid = DB::table('menus')->insertGetId([
            'pid' => $pid,
            'title' => '达人分类',
            'name' => 'master/index',
            'url' => '',
            'icon' => '',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $pid,
            'title' => '类型信息',
            'name' => 'master/index',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '添加类型',
            'name' => 'master/add',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '编辑类型',
            'name' => 'master/edit',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '删除类型',
            'name' => 'master/delete',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '查看类型',
            'name' => 'master/view',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        $sonPid = DB::table('menus')->insertGetId([
            'pid' => $pid,
            'title' => '达人记录',
            'name' => 'master/record',
            'url' => '',
            'icon' => '',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        /*---------------------------------------------------------------------*/
        /* 数据库管理 */
        $pid = DB::table('menus')->insertGetId([
            'pid' => 0,
            'title' => '数据库管理',
            'name' => '',
            'url' => '',
            'icon' => 'fa-database',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        $sonPid = DB::table('menus')->insertGetId([
            'pid' => $pid,
            'title' => '数据库管理',
            'name' => 'database/index',
            'url' => '',
            'icon' => '',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '数据库备份',
            'name' => 'database/backup',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '数据库还原',
            'name' => 'database/restore',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '数据库下载',
            'name' => 'database/download',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        DB::table('menus')->insertGetId([
            'pid' => $sonPid,
            'title' => '数据库还原',
            'name' => 'database/delete',
            'url' => '',
            'icon' => '',
            'is_show' => 0,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);

        /* 消息通知 */
        $pid = DB::table('menus')->insertGetId([
            'pid' => 0,
            'title' => '预警平台&消息通知',
            'name' => '',
            'url' => '',
            'icon' => 'fa-envelope-o',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        $sonPid = DB::table('menus')->insertGetId([
            'pid' => $pid,
            'title' => '所有消息',
            'name' => 'notice/index',
            'url' => '',
            'icon' => '',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        $sonPid = DB::table('menus')->insertGetId([
            'pid' => $pid,
            'title' => '已读消息',
            'name' => 'notice/read',
            'url' => '',
            'icon' => '',
            'is_show' => 1,
            'is_system' => 1,
            'sort' => $sort++,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s')
        ]);
        $sonPid = DB::table('menus')->insertGetId([
        'pid' => $pid,
        'title' => '未读消息',
        'name' => 'notice/unread',
        'url' => '',
        'icon' => '',
        'is_show' => 1,
        'is_system' => 1,
        'sort' => $sort++,
        'created_at' => date('Y-m-d H:i:s'),
        'updated_at' => date('Y-m-d H:i:s')
    ]);
    /* 数据大屏1 */
    $pid = DB::table('menus')->insertGetId([
        'pid' => 0,
        'title' => '数据大屏',
        'name' => '',
        'url' => '',
        'icon' => 'fa-line-chart',
        'is_show' => 1,
        'is_system' => 1,
        'sort' => $sort++,
        'created_at' => date('Y-m-d H:i:s'),
        'updated_at' => date('Y-m-d H:i:s')
    ]);
    $sonPid = DB::table('menus')->insertGetId([
        'pid' => $pid,
        'title' => '数据大屏',
        'name' => 'datascan/index',
        'url' => 'https://school.cetc365.com',
        'icon' => '',
        'is_show' => 1,
        'is_system' => 1,
        'sort' => $sort++,
        'created_at' => date('Y-m-d H:i:s'),
        'updated_at' => date('Y-m-d H:i:s')
    ]);
    }
}
